const request = require('../util/request')
// 注册   这里的data不写params全部写data作为参数的传递

export function scan(data){
  return request({
    url:'/api/index/scanCodetuiguangma',
    method:'post',
    data,
    header:{'Authorization': wx.getStorageSync('token'),'content-type': 'application/x-www-form-urlencoded'}
  })
}




export function addressList(data){
  return request({
    url:'/api/index/getAddressList',
    method:'post',
    data,
    header:{'Authorization': wx.getStorageSync('token'),'content-type': 'application/x-www-form-urlencoded'}
  })
}


export function addAddress(data){
  return request({
    url:'/api/index/addAddress',
    method:'post',
    data,
    header:{'Authorization': wx.getStorageSync('token')}
  })
}
 
export function editAddress(data){
  return request({
    url:'/api/index/editAddress',
    method:'post',
    data,
    header:{'Authorization': wx.getStorageSync('token')}
  })
}

export function getOpenId(data){
  return request({
    url:'/api/login/getOpenId',
    method:'post',
    data,
    header:{'content-type': 'application/x-www-form-urlencoded'}
  })
}

export function denglu(data){
  return request({
    url:'/api/login/getLoginInfo',
    method:'post',
    data,
    header:{'content-type': 'application/x-www-form-urlencoded'}
  })
}

export function OrderList(data){
  return request({
    url:'/api/index/getLeaseOrderList',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}

export function home(data){
  return request({
    url:'/api/index/getData',
    method:'post',
    data,
  })
}
export function affirm(data){
  return request({
    url:'/api/index/confirmPayment',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}

export function shixian(data){
  return request({
    url:'/api/common/getArea',
    method:'post',
    data,
    
  })
}

export function rentalEquipment(data){
  return request({
    url:'/api/index/rentalEquipment',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}

export function payment(data){
  return request({
    url:'/api/index/payment',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}
export function shebeilist(data){
  return request({
    url:'/api/index/getLeaseOrderList',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}

export function scanCodeBangding(data){
  return request({
    url:'/api/index/scanCodeBangding',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}

export function guanli(data){
  return request({
    url:'/api/index/myEquipmentList',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}
export function xiangqing(data){
  return request({
    url:'/api/index/myEquipmentdetails',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}
export function addOrder(data){
  return request({
    url:'/api/index/addAaWorkOrder',
    method:'post',
    data,
    header:{'Authorization': wx.getStorageSync('token')}
  })
}
export function quxiao(data){
  return request({
    url:'/api/index/cancelOrder',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}
export function shanchu(data){
  return request({
    url:'/api/index/deleteOrder',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
  })
}



export function taocan(data){
  return request({
    url:'/api/index/renewalButton',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}


export function renewPayment(data){
  return request({
    url:'/api/index/renewPayment',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function tuwen(data){
  return request({
    url:'/api/common/getAaGraphicIntroductionList',
    method:'post',
    data,
    
    
  })
}

export function liebiao(data){
  return request({
    url:'/api/common/getAaGraphicIntroductionList',
    method:'post',
    data,
    
    
  })
}

export function pipoid(data){
  return request({
    url:'/api/index/setInfo',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}

export function woker(data){
  return request({
    url:'/api/index/getAaWorkOrderList',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function xieyi(data){
  return request({
    url:'/api/common/yonghuxieyi',
    method:'post',
    data,
  })
}

export function vipgrade(data){
  return request({
    url:'/api/index/getInfo',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}

export function gold(data){
  return request({
    url:'/api/index/getGoldCoinList',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function jifen(data){
  return request({
    url:'/api/index/getIntegralGradeAndDetailed',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function delorder(data){
  return request({
    url:'/api/index/cancelOrder',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function moneytixian(data){
  return request({
    url:'/api/index/cashWithdrawal',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function zhuanxianjin(data){
  return request({
    url:'/api/index/goldCoinToCash',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function renwu(data){
  return request({
    url:'/api/index/getTaskManagement',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function fuwu(data){
  return request({
    url:'/api/index/getSkillList',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function xuqiu(data){
  return request({
    url:'/api/index/getAaDemandList',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function myneed(data){
  return request({
    url:'/api/index/myAaDemandList',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}

export function myfuwu(data){
  return request({
    url:'/api/index/mySkillList',
    method:'post',
    data,
     header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}

export function addxuqiu(data){
  return request({
    url:'/api/index/addAaDemand',
    method:'post',
    data,
      header:{'Authorization': wx.getStorageSync('token')}
    
  })
}export function chaxunxuqiu(data){
  return request({
    url:'/api/index/getDemandTypeList',
    method:'post',
    data,
      header:{'Authorization': wx.getStorageSync('token')}
    
  })
}

export function chaxunjineng(data){
  return request({
    url:'/api/index/getSkillTypeList',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function addjineng(data){
  return request({
    url:'/api/index/addSkill',
    method:'post',
    data,
    header:{'Authorization': wx.getStorageSync('token')}
    
  })
}
export function deladdress(data){
  return request({
    url:'/api/index/deleteAddress',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}

export function addIntegralDetailed(data){
  return request({
    url:'/api/index/addIntegralDetailed',
    method:'post',
    data,
    header:{'Authorization': wx.getStorageSync('token')}
    
  })
}
export function lookwuliu(data){
  return request({
    url:'/api/index/logisticsData',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function shujutongji(data){
  return request({
    url:'/api/index/statisticsWater',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function quxiaogongdan(data){
  return request({
    url:'/api/index/cancelAaWorkOrder',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}

export function deleteorder(data){
  return request({
    url:'/api/index/deleteAaWorkOrder',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function zuyongjilu(data){
  return request({
    url:'/api/index/myRentRecord',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}

export function xuzujilu(data){
  return request({
    url:'/api/index/myRenewRecord',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function vipjieshao(data){
  return request({
    url:'/api/common/integralRule',
    method:'post',
    data,
    
    
  })
}
export function homefenxiang(data){
  return request({
    url:'/api/index/shareBangding',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function fenxiangjilu(data){
  return request({
    url:'/api/index/shareRecord',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function newname(data){
  return request({
    url:'/api/login/updateMemberInfo',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded'}
    
  })
}
export function unbind(data){
  return request({
    url:'/api/index/equipmentUnBinding',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function eqbangding(data){
  return request({
    url:'/api/index/eqBinding',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function lookmember(data){
  return request({
    url:'/api/index/installUser',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}
export function reset(data){
  return request({
    url:'/api/index/remakeButton',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded','Authorization': wx.getStorageSync('token')}
    
  })
}

export function getcode(data){
  return request({
    url:'/api/login/getPhoneCode',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded'}
    
  })
}
export function getlogin(data){
  return request({
    url:'/api/login/getPhoneCodeLogin',
    method:'post',
    data,
    header:{'content-type':'application/x-www-form-urlencoded'}
    
  })
}






